<?php

//VideoFlow - Joomla Multimedia System for Facebook//

/**
* @ Version 1.1.3 
* @ Copyright (C) 2008 - 2010 Kirungi Fred Fideri at http://www.fidsoft.com
* @ VideoFlow is free software
* @ Visit http://www.fidsoft.com for support
* @ Kirungi Fred Fideri and Fidsoft accept no responsibility arising from use of this software 
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
**/
 
// No direct access
 
defined('_JEXEC') or die('Restricted access'); 

global $vparams;
$fb = JRequest::getInt('fbuser', '');
echo '<div style="padding:4px 8px;">';
if (isset($this->data) && !empty($this->data)) echo $this->data;
if ($fb){ 
?>
<script type="text/javascript">
function initFB() {
	FB_RequireFeatures(["XFBML"], function(){
		FB.init("<?php echo $vparams->fbkey; ?>", "<?php echo JURI::root().'components/com_videoflow/fbook/xd_receiver.htm'; ?>");
	});}
</script>
<?php
}
echo '</div>';
echo '<div style="padding:4px 8px; margin: 4px auto; text-align:center;">';
echo '<button type="button" onclick="window.parent.document.getElementById(\'sbox-window\').close();">'.JText::_('Close').'</button>';